{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">期末报表</p>
					{%if $semester_now=='1'%}
                    <a href="index.php?a=pay.endupdate" class="btn btn-warning btn-sm" style="float:right;">修 改</a>
					{%/if%}
                </div>
                <div class="box-body">
				 <form name="form1" action="" method="get">
                      <div class="col-sm-4 form-group" >
						  <label for="inputPassword3" class="col-sm-3 text-right">
							   学期：
						  </label>
						  <div class="input-group col-md-6" style="float:left; margin-right:10px;">
							    <select class="form-control" name="semester_id">
									{%foreach from=$semester_lists key=key item=value%}
								    <option value="{%$key%}" {%if $semester_id==$key%}selected{%/if%}>{%$value%}</option> 
									{%/foreach%}                             
                                </select>
						  </div>
						  <input type="hidden" name="a" value="pay.endlist">
                          <button class="btn btn-primary" type="submit">查询</button>
				    </div>
					</form>
                    <div style="clear:both"></div>
                      <h3 class="text-center"> {%$semester_data.semester_name%}绩效工资表</h3>
                      <table class="table table-bordered" id="mytable">
                          <thead>   
                             <tr>
                                <td rowspan="2">编号</td>
                                <td rowspan="2">姓名</td>
                                <td rowspan="2">教学奖</td>
                                <td rowspan="2">全勤</td>
                                <td colspan="4" align="center">奖励</td>
                                <td rowspan="2">毕业班奖励</td>
                                <td rowspan="2">其它</td>
                                <td rowspan="2">小计</td>
							 </tr>
                             <tr>
                                <td>班风</td>
                                <td>公开课</td>
                                <td>个人</td>
                                <td>指导学生</td>
							 </tr>
                          </thead>
						  {%foreach from=$out_lists key=key item=value%}
                             <tr>
                                <td>{%$value.staff_number%}</td>
                                <td>{%$value.staff_name%}</td>
                                <td>{%$value.teach%}</td>
                                <td>{%$value.duty%}</td>
                                <td>{%$value.class%}</td>
                                <td>{%$value.open%}</td>
                                <td>{%$value.single%}</td>
                                <td>{%$value.student%}</td>
                                <td>{%$value.finish%}</td>
                                <td>{%$value.other%}</td>
                                <td>{%$value.total%}</td>
							 </tr>
						  {%/foreach%}
						 </table>      	   
				    </div><!--box-body --> 
             </div><!--box box-default box-solid-->
          </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 {%include file="index.footer.tpl.php"%}

